package com.tomatosystem.board;

import java.io.IOException;
import java.io.OutputStream;
import java.io.Serializable;
import java.io.Writer;
import java.sql.Date;
import java.util.Properties;
import java.util.Vector;

import org.w3c.dom.Node;
import org.xml.sax.Attributes;
import org.xml.sax.ContentHandler;
import org.xml.sax.SAXException;

import com.sun.org.apache.xml.internal.serializer.SerializerBase;

/*
"SEQ"        NUMBER NOT NULL,
    "ID"         VARCHAR2(50) NOT NULL,
    "TITLE"      VARCHAR2(200) NOT NULL,
    "CONTENT"    VARCHAR2(4000) NOT NULL,
    "REGDATE"    TIMESTAMP NOT NULL,
    "REF"        NUMBER NOT NULL,
    "STEP"       NUMBER NOT NULL,
    "DEPTH"      NUMBER NOT NULL,
    "PARENT"     NUMBER NOT NULL,
    "DEL"        VARCHAR2(1) NOT NULL,
 */

public class AnswerBoardDto implements Serializable {
	private int seq;
	private String id;
	private String title;
	private String content;
	private Date regdate;
	private int ref;
	private int step;
	private int depth;
	private int parent;
	private String del;
	
	public AnswerBoardDto() {
		super();
	}
	public AnswerBoardDto(int seq, String id, String title, String content,
			Date regdate, int ref, int step, int depth, int parent, String del) {
		
		this.seq = seq;
		this.id = id;
		this.title = title;
		this.content = content;
		this.regdate = regdate;
		this.ref = ref;
		this.step = step;
		this.depth = depth;
		this.parent = parent;
		this.del = del;
	}
	public AnswerBoardDto(int seq, String id, String title, String content,
		int ref, int step, int depth, int parent, String del) {
		this(seq,  id,  title,  content, null,
		 ref,  step,  depth,  parent,  del);
		
	}
	public int getSeq() {
		return seq;
	}
	public void setSeq(int seq) {
		this.seq = seq;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getRegdate() {
		return regdate;
	}
	public void setRegdate(Date regdate) {
		this.regdate = regdate;
	}
	public int getRef() {
		return ref;
	}
	public void setRef(int ref) {
		this.ref = ref;
	}
	public int getStep() {
		return step;
	}
	public void setStep(int step) {
		this.step = step;
	}
	public int getDepth() {
		return depth;
	}
	public void setDepth(int depth) {
		this.depth = depth;
	}
	public int getParent() {
		return parent;
	}
	public void setParent(int parent) {
		this.parent = parent;
	}
	public String getDel() {
		return del;
	}
	public void setDel(String del) {
		this.del = del;
	}
	
	@Override
	public String toString() {
		return "AnswerBoardDto [seq=" + seq + ", id=" + id + ", title=" + title
				+ ", content=" + content + ", regdate=" + regdate + ", ref="
				+ ref + ", step=" + step + ", depth=" + depth + ", parent="
				+ parent + ", del=" + del + ", getSeq()=" + getSeq()
				+ ", getId()=" + getId() + ", getTitle()=" + getTitle()
				+ ", getContent()=" + getContent() + ", getRegdate()="
				+ getRegdate() + ", getRef()=" + getRef() + ", getStep()="
				+ getStep() + ", getDepth()=" + getDepth() + ", getParent()="
				+ getParent() + ", getDel()=" + getDel() + ", getClass()="
				+ getClass() + ", hashCode()=" + hashCode() + ", toString()="
				+ super.toString() + "]";
	}
	
	
	
	
	

}
